.project-carousel-container {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 15px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.project-card {
  flex: 0 0 auto;
  width: clamp(260px, 80vw, 420px);
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: center;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.project-card img,
.project-card video {
  width: 100%;
  height: 25rem;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #000;
}

.project-carousel::-webkit-scrollbar {
  height: 8px;
}

.project-carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 87, 160, 0.6);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.project-carousel::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 87, 160, 0.9);
}

.project-carousel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.Pname {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  text-align: center;
  margin: 1rem 0;
  line-height: 1.3;
  font-weight: 600;
  color: #003366;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pDetails {
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  line-height: 1.7;
  margin: 1.5rem auto;
  padding: 0 1rem;
  max-width: 850px;
  text-align: justify;
  color: #444;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 10px;
  padding: 0 20px;
}

.carousel-btn.themed {
  background: linear-gradient(135deg, #0057a0, #0077cc);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 87, 160, 0.3);
}

.carousel-btn.themed:hover {
  background: linear-gradient(135deg, #0077cc, #00aaff);
  transform: scale(1.05);
}
